package com.csdig.html.model;

import com.csdig.cms.model.CmsUser;

import java.io.Serializable;
import java.util.Date;

/**
 * 帖子
 *
 * @author wei_jc
 * @since 1.0.0
 */
public class ForumPost implements Serializable {
    private int postId;
    private String subject;
    private String content;
    private Date createDate;
    private int clickCount;
    private int userId;
    private CmsUser user;

    private int replayCount;
    private String lastReplayDate;

    public int getPostId() {
        return postId;
    }

    public void setPostId(int postId) {
        this.postId = postId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public int getClickCount() {
        return clickCount;
    }

    public void setClickCount(int clickCount) {
        this.clickCount = clickCount;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public CmsUser getUser() {
        if (user == null) {
            user = new CmsUser();
            user.setTelNum("游客");
        }
        return user;
    }

    public void setUser(CmsUser user) {
        this.user = user;
    }

    public int getReplayCount() {
        return replayCount;
    }

    public void setReplayCount(int replayCount) {
        this.replayCount = replayCount;
    }

    public String getLastReplayDate() {
        return lastReplayDate;
    }

    public void setLastReplayDate(String lastReplayDate) {
        this.lastReplayDate = lastReplayDate;
    }
}
